package com.xxl.job.core.biz.model;

import com.xxl.excel.core.annotation.ExcelField;
import com.xxl.excel.core.annotation.ExcelSheet;
import org.apache.poi.hssf.util.HSSFColor;

import java.io.Serializable;
import java.util.Date;

/**
 * 数据库链接信息
 */
@ExcelSheet(name = "数据库链接信息", headColor = HSSFColor.HSSFColorPredefined.LIGHT_GREEN)
public class DbInfo1 implements Serializable {
    private static final long serialVersionUID = 1L;

    @ExcelField(name = "链接ID")
    private Long id;
    @ExcelField(name = "链接别名")
    private String name;
    @ExcelField(name = "链接驱动")
    private String dbDriver;
    @ExcelField(name = "链接地址")
    private String dbUrl;
    @ExcelField(name = "账号")
    private String dbUserName;
    @ExcelField(name = "密码")
    private String dbPassword;
    @ExcelField(name = "链接类型")
    private String dbType;
    @ExcelField(name = "创建时间")
    private Date createTime;
    @ExcelField(name = "更新时间",dateformat = "yyyy-MM-dd")
    private Date updateTime;
    @ExcelField(name = "备注")
    private String remark;
    @ExcelField(name = "链接归属")
    private String belong;

    /**
     * mongodb端口
     */
    @ExcelField(name = "mongodb端口")
    private String mongodbPort;

    /**
     * mongodb表名
     */
    @ExcelField(name = "mongodb表名")
    private String mongodbDatabase;

    public DbInfo1() {

    }

    public Long getId() {
        return this.id;
    }

    public String getName() {
        return this.name;
    }

    public String getDbDriver() {
        return this.dbDriver;
    }

    public String getDbUrl() {
        return this.dbUrl;
    }

    public String getDbUserName() {
        return this.dbUserName;
    }

    public String getDbPassword() {
        return this.dbPassword;
    }

    public String getDbType() {
        return this.dbType;
    }

    public Date getCreateTime() {
        return this.createTime;
    }

    public Date getUpdateTime() {
        return this.updateTime;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public void setName(String name) {
        this.name = name;
    }

    public void setDbDriver(String dbDriver) {
        this.dbDriver = dbDriver;
    }

    public void setDbUrl(String dbUrl) {
        this.dbUrl = dbUrl;
    }

    public void setDbUserName(String dbUserName) {
        this.dbUserName = dbUserName;
    }

    public void setDbPassword(String dbPassword) {
        this.dbPassword = dbPassword;
    }

    public void setDbType(String dbType) {
        this.dbType = dbType;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public boolean equals(Object o) {
        if (o == this) {
            return true;
        } else if (!(o instanceof DbInfo)) {
            return false;
        } else {
            DbInfo other = (DbInfo)o;
            if (!other.canEqual(this)) {
                return false;
            } else {
                label119: {
                    Object this$id = this.getId();
                    Object other$id = other.getId();
                    if (this$id == null) {
                        if (other$id == null) {
                            break label119;
                        }
                    } else if (this$id.equals(other$id)) {
                        break label119;
                    }

                    return false;
                }

                Object this$name = this.getName();
                Object other$name = other.getName();
                if (this$name == null) {
                    if (other$name != null) {
                        return false;
                    }
                } else if (!this$name.equals(other$name)) {
                    return false;
                }

                label105: {
                    Object this$dbDriver = this.getDbDriver();
                    Object other$dbDriver = other.getDbDriver();
                    if (this$dbDriver == null) {
                        if (other$dbDriver == null) {
                            break label105;
                        }
                    } else if (this$dbDriver.equals(other$dbDriver)) {
                        break label105;
                    }

                    return false;
                }

                Object this$dbUrl = this.getDbUrl();
                Object other$dbUrl = other.getDbUrl();
                if (this$dbUrl == null) {
                    if (other$dbUrl != null) {
                        return false;
                    }
                } else if (!this$dbUrl.equals(other$dbUrl)) {
                    return false;
                }

                label91: {
                    Object this$dbUserName = this.getDbUserName();
                    Object other$dbUserName = other.getDbUserName();
                    if (this$dbUserName == null) {
                        if (other$dbUserName == null) {
                            break label91;
                        }
                    } else if (this$dbUserName.equals(other$dbUserName)) {
                        break label91;
                    }

                    return false;
                }

                Object this$dbPassword = this.getDbPassword();
                Object other$dbPassword = other.getDbPassword();
                if (this$dbPassword == null) {
                    if (other$dbPassword != null) {
                        return false;
                    }
                } else if (!this$dbPassword.equals(other$dbPassword)) {
                    return false;
                }

                label77: {
                    Object this$dbType = this.getDbType();
                    Object other$dbType = other.getDbType();
                    if (this$dbType == null) {
                        if (other$dbType == null) {
                            break label77;
                        }
                    } else if (this$dbType.equals(other$dbType)) {
                        break label77;
                    }

                    return false;
                }

                label70: {
                    Object this$createTime = this.getCreateTime();
                    Object other$createTime = other.getCreateTime();
                    if (this$createTime == null) {
                        if (other$createTime == null) {
                            break label70;
                        }
                    } else if (this$createTime.equals(other$createTime)) {
                        break label70;
                    }

                    return false;
                }

                Object this$updateTime = this.getUpdateTime();
                Object other$updateTime = other.getUpdateTime();
                if (this$updateTime == null) {
                    if (other$updateTime != null) {
                        return false;
                    }
                } else if (!this$updateTime.equals(other$updateTime)) {
                    return false;
                }

                return true;
            }
        }
    }

    protected boolean canEqual(Object other) {
        return other instanceof DbInfo;
    }

    public String toString() {
        return "CodeDbInfo(id=" + this.getId() + ", name=" + this.getName() + ", dbDriver=" + this.getDbDriver() + ", dbUrl=" + this.getDbUrl() + ", dbUserName=" + this.getDbUserName() + ", dbPassword=" + this.getDbPassword() + ", dbType=" + this.getDbType() + ", createTime=" + this.getCreateTime() + ", updateTime=" + this.getUpdateTime() + ")";
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public String getBelong() {
        return belong;
    }

    public void setBelong(String belong) {
        this.belong = belong;
    }

    public String getMongodbPort() {
        return mongodbPort;
    }

    public void setMongodbPort(String mongodbPort) {
        this.mongodbPort = mongodbPort;
    }

    public String getMongodbDatabase() {
        return mongodbDatabase;
    }

    public void setMongodbDatabase(String mongodbDatabase) {
        this.mongodbDatabase = mongodbDatabase;
    }
}
